<template>
  <div class="wordTip">
    <i class="el-icon-info"></i>
    <span>{{wordTip}}</span>
  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  props: {
    wordTip: {
      type: String,
      default: '请传入相应的提示语'
    }
  },
  created: function () {

  },
  mounted: function () {

  },
  methods: {},
  watch: {}
}
</script>

<style lang='scss' scoped type="text/css">
  %background-color {
    background-color: rgba(64,158,255,.1);
    font-size: 12px;
    color: #409eff;
    border-radius: 4px;
    box-sizing: border-box;
    border: 1px solid rgba(64,158,255,.2);
  };

  .wordTip {
  @extend %background-color;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
  padding: 10px;
  border-radius: .4rem;
  overflow: hidden;
  i {
    align-self: center;
  }
  span {
    line-height: 22px;
    text-align: left;
    padding-left: 10px;
  }
}
</style>
